<?php

// 红包雨
/**
Route::get('/redpack_rain/activity/index/{token}', 'App\RedpackRain\IndexController@index');
Route::get('/redpack_rain/activity/detail', 'App\RedpackRain\IndexController@activity');
Route::get('/redpack_rain/activity/preview/{model}/{template}', 'App\RedpackRain\IndexController@preview');
Route::post('/redpack_rain/activity/luck_draw', 'App\RedpackRain\IndexController@luckDraw');
Route::post('/redpack_rain/activity/receive', 'App\RedpackRain\IndexController@receive');
Route::get('/redpack_rain/activity/participant', 'App\RedpackRain\IndexController@participant');
*/

// 报名
Route::post('/apply/upload/{activityId}', 'App\ApplyController@upload');
Route::post('/apply/{activityId}', 'App\ApplyController@store');
Route::get('/apply/widgets/{activityId}', 'App\ApplyController@widgets');

// 基础服务 （也不知道有没有用）
Route::get('wechat/oauth', 'App\OauthController@oauth');
Route::post('utils/send_sms', 'App\OauthController@sendSmsCode');
Route::post('utils/check_mobile_code', 'App\OauthController@checkMobileCode');

/* 投票 */
Route::get('/vote/activity/index/{token}', 'App\Vote\IndexController@index');
Route::get('/vote/activity/detail', 'App\Vote\IndexController@activity');
Route::get('/vote/activity/preview/{model}/{template}', 'App\Vote\IndexController@preview'); //后台手机端预览
Route::post('/vote/activity/luck_draw', 'App\Vote\IndexController@luckDraw');
Route::post('/vote/activity/receive', 'App\Vote\IndexController@receive');
Route::get('/vote/activity/participant', 'App\Vote\IndexController@participant');

/* 报名 */
Route::get('/enroll/activity/index/{token}', 'App\Enroll\IndexController@index');
Route::get('/enroll/activity/detail', 'App\Enroll\IndexController@activity');
Route::get('/enroll/activity/preview/{model}/{template}', 'App\Enroll\IndexController@preview'); //后台手机端预览
Route::post('/enroll/activity/luck_draw', 'App\Enroll\IndexController@luckDraw');
Route::post('/enroll/activity/receive', 'App\Enroll\IndexController@receive');
Route::get('/enroll/activity/participant', 'App\Enroll\IndexController@participant');

/* 微信的授权回调和分享跳转 */
Route::get('/wechat/activities', 'Activity\WechatController@toActivityPage');
Route::get('/wechat/shares', 'Activity\WechatController@toShared');
